package hos.http;

import android.app.Activity;
import android.app.Dialog;
import android.app.ProgressDialog;

/**
 * <p>Title: HttpDialogFactory </p>
 * <p>Description:  </p>
 * <p>Company: www.mapuni.com </p>
 *
 * @author : 蔡俊峰
 * @version : 1.0
 * @date : 2024-04-07 23:14
 */
public interface HttpDialogFactory {
    public Dialog create(Activity activity);

    public static class DEFAULT implements HttpDialogFactory {

        @Override
        public Dialog create(Activity activity) {
            ProgressDialog progressDialog = new ProgressDialog(activity);
            progressDialog.setMessage("加载中...");
            return progressDialog;
        }
    }
}
